/**   
* @Title: HisBaseMapperAnnCRUD.java 
* @Package com.txby.platformApi.component.service 
* @Description: TODO(用一句话描述该文件做什么) 
* @author jacking  
* @date 2017年11月8日 上午10:41:33 
* @version V1.0   
*/
package com.txby.hisJob.component.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.jck.mybatis.mapper.MybatisBaseDaoCRUD;
import com.txby.platformCore.entity.TxbySysApiUser;

/** 
* @ClassName: HisBaseServiceAnnCRUD 
* @Description: 主要处理his多数据源事务
 */
@Service("hisBaseService")
public class HisBaseService extends HisBaseServiceAnnCRUD{
	@Resource(name = "mybatisBaseDaoCRUD")
	public MybatisBaseDaoCRUD mBaseDao;
//	@Transactional(rollbackFor = Exception.class)
	@Transactional(propagation = Propagation.REQUIRED,timeout=36000,rollbackFor=Exception.class)
	public void excuteSaveObject(TxbySysApiUser gau){
		mBaseDao.saveObject(gau);
		saveObject(gau);
		System.out.println(1/0);
	}
	 
}
